package com.example.gulimall.product.vo.item;

import com.alibaba.fastjson.JSONObject;
import com.example.common.to.kill.SecKillRedisTo;
import com.example.common.to.kill.SkuInfoTo;
import com.example.gulimall.product.entity.SkuImagesEntity;
import com.example.common.entity.product.SkuInfoEntity;
import com.example.gulimall.product.entity.SpuInfoDescEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
@Setter
@Getter
@Accessors(chain = true)
public class SkuItemVo {

    private boolean stock = true;

    // 查询 sku 基本信息
    private SkuInfoEntity skuInfoEntity;

    // 查询 sku 图片信息
    private List<SkuImagesEntity> images;

    // 查询 sku 销售属性
    private List<ItemSaleAttrsVo> saleAttrs;

    // 查询 spu 介绍
    private SpuInfoDescEntity desp;

    // 查询 spu 规格与包装
    private List<SpuItemGroupAttrVo> groupAttrs;

    private SecKillRedisTo secKill;

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
